package com.wavecoler.professor.objects;

import java.io.Serializable;
import java.util.Date;
import javax.jdo.annotations.*;

@SuppressWarnings("serial")
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Session implements Serializable {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	@Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
    private String encodedKey;
	
	@Persistent
    @Extension(vendorName="datanucleus", key="gae.pk-id", value="true")
    private Long sessionID;
	
	@Persistent
	private Date dateTimeStart;
	
	@Persistent
	private Date dateTimeEnd;
	
	@Persistent
	private String sessionType;
	
	@Persistent
	private String participant;
	
	@Persistent
	private Long problemID;
	
	@Persistent
	private String status;
	
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getDateTimeStart() {
		return dateTimeStart;
	}

	public void setDateTimeStart(Date dateTimeStart) {
		this.dateTimeStart = dateTimeStart;
	}

	public Date getDateTimeEnd() {
		return dateTimeEnd;
	}

	public void setDateTimeEnd(Date dateTimeEnd) {
		this.dateTimeEnd = dateTimeEnd;
	}

	public String getSessionType() {
		return sessionType;
	}

	public void setSessionType(String sessionType) {
		this.sessionType = sessionType;
	}

	public int getTimeLimit() {
		return timeLimit;
	}

	public void setTimeLimit(int timeLimit) {
		this.timeLimit = timeLimit;
	}

	public String getEncodedKey() {
		return encodedKey;
	}

	public Long getSessionID() {
		return sessionID;
	}

	public void setParticipant(String participant) {
		this.participant = participant;
	}

	public String getParticipant() {
		return participant;
	}

	public void setProblemID(Long problemID) {
		this.problemID = problemID;
	}

	public Long getProblemID() {
		return problemID;
	}

	@Persistent
	private int timeLimit;
}